package com.azier.kapacitor.script.method;

import com.azier.kapacitor.script.arg.SingleQuotesArg;

import java.util.ArrayList;

/**
* 1 * @Author: luoj
* 2 * @Date: 2019/11/8 11:27
* 3
*/
public class On extends AbstractMethod {
    private static final String name = "on";
    /**
    Join on a subset of the group by dimensions. This is a special case where you want a single point from one parent to join with multiple points from a different parent.
    **/
    /**
    按维度加入组的子集。这是一种特殊情况，您希望一个父级的一个点与另一个父级的多个点合并。
    **/
    public On(String ...dims) {
        super(new ArrayList<>(), name);
        //
        for(String argf : dims){
            this.args.add(new SingleQuotesArg(argf));
        }


    }
}
